package com.gsafety.config;

import com.gsafety.service.DemoService;
import com.gsafety.service.PersonService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DemoConfig {

    @Bean
    public ToolCallbackProvider demoToolCallbackProvider(DemoService demoService) {
        return MethodToolCallbackProvider.builder().toolObjects(demoService).build();
    }
}
